package com.cndw.kungfu.model.business.domain;

import java.util.HashMap;
import java.util.Map;

public class PayGoods {

	private int id;

	/**
	 * “name*des”
	 */
	private String goodsmeta;
	private int appmode = 1;
	private String goodsurl;
	private int price;
	/**
	 * 赠送的元宝
	 */
	private int liquan;

	public PayGoods(int id, String goodsmeta, String goodsurl, int price, int liquan) {
		this.id = id;
		this.goodsurl = goodsurl;
		this.goodsmeta = goodsmeta;
		this.price = price;
		this.liquan = liquan;
	}

	private static Map<Integer, PayGoods> goodsMap = new HashMap<Integer, PayGoods>();

	static {
		goodsMap.put(100, new PayGoods(100, "100元宝套餐*100元宝套餐", "photo/pay/pay100.png", 100, 10));
		goodsMap.put(500, new PayGoods(500, "500元宝套餐*500元宝套餐", "photo/pay/pay500.png", 500, 50));
		goodsMap.put(1000, new PayGoods(1000, "1000元宝套餐*1000元宝套餐", "photo/pay/pay1000.png", 1000, 100));
		goodsMap.put(3000, new PayGoods(3000, "3000元宝套餐*3000元宝套餐", "photo/pay/pay3000.png", 3000, 300));
		goodsMap.put(5000, new PayGoods(5000, "5000元宝套餐*5000元宝套餐", "photo/pay/pay5000.png", 5000, 500));
	}

	public static PayGoods getPayGoods(Integer id) {
		return goodsMap.get(id);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getGoodsmeta() {
		return goodsmeta;
	}

	public void setGoodsmeta(String goodsmeta) {
		this.goodsmeta = goodsmeta;
	}

	public int getAppmode() {
		return appmode;
	}

	public void setAppmode(int appmode) {
		this.appmode = appmode;
	}

	public String getGoodsurl() {
		return goodsurl;
	}

	public void setGoodsurl(String goodsurl) {
		this.goodsurl = goodsurl;
	}

	public static Map<Integer, PayGoods> getGoodsMap() {
		return goodsMap;
	}

	public static void setGoodsMap(Map<Integer, PayGoods> goodsMap) {
		PayGoods.goodsMap = goodsMap;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getLiquan() {
		return liquan;
	}

	public void setLiquan(int liquan) {
		this.liquan = liquan;
	}

}
